package com.project.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("checkName")
    public String checkName(String name){

        if ("tom".equals(name)){
            return "yes";
        }
            return "no";
    }

    @RequestMapping("speak")
    public String speak(){
        return "ok";
    }
}
